package com.yuke.cloud.service.api.omc.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
public class OdsOrderApiDto {

    @ApiModelProperty(value="orderCount定单次数")
    private Integer orderCount;

    @ApiModelProperty(value="shopId店铺ID，主键，自增")
    private Long shopId;

    @ApiModelProperty(value="userId店铺主人（法人代表）ID，与用户表关联")
    private Long userId;

    @ApiModelProperty(value="shopName店铺名称，如果线下店有营业执照，必须与营业执照保持一致")
    private String shopName;

    @ApiModelProperty(value="storeName店铺名称，如果线下店有营业执照，必须与营业执照保持一致")
    private String storeName;

    @ApiModelProperty(value = "orderCount最大定单次数")
    private Integer maxOrder;

    @ApiModelProperty(value = "orderCount最小定单次数")
    private Integer minOrder;

    @ApiModelProperty(value = "minPrice最低金额")
    private Integer minMoney;

    @ApiModelProperty(value = "maxPrice最高金额")
    private Integer maxMoney;

    @ApiModelProperty(value="telephone店铺联系电话")
    private String telephone;

    @ApiModelProperty(value="regionCountryId店铺所在国家ID")
    private Long regionCountryId;

    @ApiModelProperty(value="regionProvinceId店铺所在省份ID")
    private Long regionProvinceId;

    @ApiModelProperty(value="regionCityId店铺所在城市ID")
    private Long regionCityId;

    @ApiModelProperty(value="regionCountyId店铺所在区县ID")
    private Long regionCountyId;

    @ApiModelProperty(value="address店铺详细地址")
    private String address;

    @ApiModelProperty(value = "amountPayable订单应该支付的金额，包含运费等，单位为分")
    private Long amountPayable;

    //store 中使用
    @ApiModelProperty(value = "amountPayable订单应该支付的金额，包含运费等，单位为分")
    private Integer countPayable;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    @ApiModelProperty(value = "beginTime那个时间开始的订单")
    private Date beginTime;

    @ApiModelProperty(value = "endTime到哪个时间的订单")
    private Date endTime;

    @ApiModelProperty(value = "createTime订单下单时间")
    private String createTime;

    @ApiModelProperty(value = "累计最大下单金额")
    private Integer maxPrice;

    @ApiModelProperty(value = "累计最小下单金额")
    private Integer minPrice;

    @ApiModelProperty(value="storeId店铺ID，主键，自增")
    private Long storeId;

}
